﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] arr = { 45, 546, 1, 5, 68, 99, 45, 10 };
            foreach (var item in arr)
            {
                Console.Write(item+" ");
            }
            Console.WriteLine();
            Array.Sort(arr);
            Array.Reverse(arr);
            foreach (var item in arr)
            {
                Console.Write(item+" ");
            }

        }
    }
}
